#define _CRT_SECURE_NO_WARNINGS 

#include	"seqlist.h"

void test1()
{
	int arr[] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	SL_Dynamic sl;

	SeqListType mem;
	int k1 = sizeof(mem);
	int k2 = sizeof(SeqListType);
	printf("%d %d\n", k1, k2);
	SL_Info(&sl);
	for (int i = 0;i < sz;i++)
	{
		//SL_ADD_pos(&sl, i, arr[i]);
		//SL_ADD_head(&sl, arr[i]);
		SL_ADD_tail(&sl, arr[i]);
	}
	SL_print_member(sl);

	int n = 0, m = 0;
	while (1)
	{
		scanf("%d %d", &n, &m);
		//SL_delete_pos(&sl, n);
		//printf("%d\n", SL_search_member(&sl, n));
		//SL_delete_member(&sl, n);
		//SL_modify_pos(&sl, n, m);
		SL_modify_member(&sl, n, m);

		SL_print_member(sl);
	}

	

}

int main()
{
	test1();



	return 0;
}

